package cn.qiao.fs.event;

import cn.qiao.fs.esl.inbound.IEslEventListener;
import cn.qiao.fs.esl.internal.Context;
import cn.qiao.fs.esl.transport.event.EslEvent;
import io.netty.channel.Channel;


public class FsEventListener implements IEslEventListener {

    private FsEventManager eventManager;


    @Override
    public void onEslEvent(Context ctx, EslEvent event) {
        String evenName = event.getEventHeaders().get("");
        FsEvent eventHandler = eventManager.getEventHandler(evenName);
        eventHandler.event();
    }

    @Override
    public void onClose(Channel channel) {

    }
}
